# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=tsh-sctp
pkgver=2.850a2da
pkgrel=3
pkgdesc='An open-source UNIX backdoor.'
url='https://github.com/infodox/tsh-sctp'
arch=('any')
groups=('blackarch' 'blackarch-backdoor')
license=('GPL')
makedepends=('git')
source=("git+https://github.com/infodox/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -dm 755 "$pkgdir/usr/share/$pkgname"

  cp -a --no-preserve=ownership * "$pkgdir/usr/share/$pkgname"
}

